import { httpProvider } from "../../utils/request";

export function login(data):Promise<UserInfo>{
  return httpProvider.request({
    method:'POST',
    url:'/login',
    data
  });
}

export function registry(data:IRegistry){
  return httpProvider.request({
    method:'POST',
    url:'/registry',
    data
  });
}
export function useList(id:number):Promise<UserList>{
  return httpProvider.request({
    method:'GET',
    url:`/user/${id}`,
  });
}
